import { axios } from '@/utils/request'

const api = {
  collect: '/statistic/data/collect',
  distributor: '/statistic/data/distributor',
  sale: '/statistic/data/sale',
  integral: '/statistic/data/integral',
  grant: '/statistic/data/grant',
  imgList: '/statistic/data/get-img'
}

export default api

export function collect (parameter) {
  return axios({
    url: api.collect,
    method: 'get',
    params: parameter
  })
}
export function distributor (parameter) {
  return axios({
    url: api.distributor,
    method: 'get',
    params: parameter
  })
}
export function sale (parameter) {
  return axios({
    url: api.sale,
    method: 'get',
    params: parameter
  })
}
export function integral (parameter) {
  return axios({
    url: api.integral,
    method: 'get',
    params: parameter
  })
}
export function grant (parameter) {
  return axios({
    url: api.grant,
    method: 'get',
    params: parameter
  })
}
export function getImg (parameter) {
  return axios({
    url: api.imgList,
    method: 'get',
    params: parameter
  })
}
